import Vue from 'vue'
import App from './App.vue'
import { createdRouter } from './router'

export function createApp () {
    // 创建 router 实例
    const router = createRouter()
    // 创建vue实例
    const app = new Vue({
        router,
        render: h => h(App)
    })
    return { app, router }
}